package com.example.baselibrary.db.dao;
import com.example.baselibrary.db.BTDBHelper;
import com.example.baselibrary.db.table.IMTopTable;

import cc.vv.lklibrary.db.dao.DBBaseTableDao;
import cc.vv.lklibrary.db.help.DBBaseOpenHelper;

/**
 * 置顶管理
 * @author: NPF
 * @date: 2018/3/23.
 */
public class IMTopDao extends DBBaseTableDao<IMTopTable, String> {
    public IMTopDao(DBBaseOpenHelper openHelper) {
        super(openHelper);
    }

    private static IMTopDao mInstance;

    public static IMTopDao getInstance() {
        if (null == mInstance) {
            synchronized (IMTopDao.class) {
                if (null == mInstance) {
                    mInstance = new IMTopDao(BTDBHelper.getInstance());
                }
            }
        }
        return mInstance;
    }
}
